package com.ibeetl.cms.dao;

import com.ibeetl.cms.entity.DeclareLimit;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * DeclareLimit Dao
 */
@SqlResource("cms.declareLimit")
public interface DeclareLimitDao extends BaseMapper<DeclareLimit>{
    public PageQuery<DeclareLimit> queryByCondition(PageQuery query);
    public void batchDelDeclareLimitByIds( List<Long> ids);
    public int isInTime(Integer type,Date time);
    public int afterTime(Integer type,Date time);
}